/* 
 * File:   trackinfo.h
 * Author: Arnaud Bellec
 *
 * Created on April 9, 2011, 2:01 PM
 */

#ifndef TRACKINFO_H
#define	TRACKINFO_H

#include <QtCore>

#include "qt_serialize.h"

namespace Playur {

class TrackInfo {
public:
    TrackInfo();
    TrackInfo(const QString& filename);

    QString title;
    QString artist;
    QString album;
    int index;

    QString filename;
    QString urlBase;

    int id;

private:
    friend class boost::serialization::access;
    template<class Archive>
    void serialize(Archive & ar, const unsigned int version) {
        ar & NVP(title) & NVP(artist) & NVP(album) & NVP(index) & NVP(filename) & NVP(id) & NVP(urlBase);
    }
};

}

#endif	/* TRACKINFO_H */

